package Test1223;

public class Test20 {
    public static void main(String[] args) {
        // 打印如下数字矩阵

        //        1
        //      121
        //    12321
        //  1234321
        //123454321
        for (int i = 1; i <= 5; i++) {
            for(int j = 10-2*i; j >= 0 ; j--){
                System.out.print(" ");
            }
            for (int k = 1; k <= i; k++) {
                System.out.print(k);
            }
            for (int h = i-1; h >= 1; h--){
                System.out.print(h);
            }
            System.out.println();
        }
    }
}